{% extends "base.html" %}
{% block title %}借出书籍{% endblock %}
{% block body %}
<div class="container">
    <h2>借出书籍 </h2>
<p>正在借出书籍: <strong>《{{ book.title }}》</strong> 作者: {{ book.author }}
</p>
<form action="{{ url_for('borrow_book', book_id=book.id) }}" method="post">
    {{ form.hidden_tag() }}
    <div class="form-group">
        <label>借阅者用户名:</label>
        {{ form.borrower_username(class="form-control") }}
    </div>
    <button type="submit" class="btn btn-primary">确认借出</button>
</form>
</div>
{% endblock %}